import axios from "@/utils/axios.js";
// http://ceshi13.dishait.cn/admin/image_class/:page?limit=10
export const getimagelist = (page)=>{
    return axios.get(`/admin/image_class/${page}`);
}
// 新增图库分类
export const addimageclass = (obj)=>{
    return axios.post('/admin/image_class',obj);
}
// 删除图库分类
export const deleteimageclass = (id)=>{
    return axios.delete(`/admin/image_class/${id}`);
}
// 修改图库分类
export const updateimageclass = (id,data)=>{
    return axios.put(`/admin/image_class/${id}`,data);
}
export const setImgList=(id,obj)=>{
    return axios.post(`/admin/image_class/${id}`,obj)
}